1 //+-----------------------------------------------------------------------
3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // Defines the PersistHistory class of PresentationHost.
12 // Ported Windows->DevDiv. See SourcesHistory.txt.
14 //------------------------------------------------------------------------
18 //******************************************************************************
20 // CPersistHistory class definition
22 //******************************************************************************
24 class CPersistHistory
: IPersistHistory
26 friend class CHtmlWindow
;
29 CHostShim
*m_pHostShim
;
31 CPersistHistory::CPersistHistory(__in CHostShim
*);
32 CPersistHistory::~CPersistHistory();
35 STDMETHODIMP
QueryInterface(REFIID
, __out LPVOID
*);
36 STDMETHODIMP_(ULONG
)AddRef();
37 STDMETHODIMP_(ULONG
)Release();
40 STDMETHODIMP
GetClassID(LPCLSID
);
42 // IPersistHistory Methods
43 STDMETHODIMP
LoadHistory(__in IStream
*pStream
, IBindCtx
*pbc
);
44 STDMETHODIMP
SaveHistory(__in IStream
*pStream
);
45 STDMETHODIMP
SetPositionCookie(DWORD dwPositioncookie
);
46 STDMETHODIMP
GetPositionCookie(__out DWORD
*pdwPositioncookie
);
49 STDMETHODIMP
WriteToStream(IStream
* pOutputStream
, DWORD dwData
);
50 STDMETHODIMP
ReadFromStream(IStream
* pInputStream
, DWORD
* pdwData
);